package com.emser.unc.client.event;

import com.emser.unc.client.service.SellerServiceAsync;
import com.google.gwt.event.shared.GwtEvent;

public class AddSellerEvent extends GwtEvent<AddSellerEventHandler> {
	public static Type<AddSellerEventHandler> TYPE = new Type<AddSellerEventHandler>();
	private SellerServiceAsync rpcServiceSeller;
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<AddSellerEventHandler> getAssociatedType() {
		return TYPE;
	}
	public AddSellerEvent(SellerServiceAsync rpcServiceSeller){
		this.rpcServiceSeller = rpcServiceSeller;
		
	}
	@Override
	protected void dispatch(AddSellerEventHandler handler) {
		handler.onAdd(this);
		
	}
	
	public SellerServiceAsync getRPCserviceSeller(){
		return rpcServiceSeller;	
	}

}
